/**
 * @param {HTMLElement} el
 * @param {string} animation
 */
export function setElementAnimation(el: HTMLElement, animation: string): void {
  if (!el) return
  try {
    el.style.animation = animation
  } catch (e) {
    console.error('Error setting element animation:', e)
  }
} 